package com.ruoyi.shop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 类别管理对象 category
 *
 * @author ruoyi
 * @date 2025-06-05
 */
public class Category extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类别编号 */
    private Long cid;

    /** 商家编号 */
    @Excel(name = "商家编号")
    private Long sid;

    /** 类别名称 */
    @Excel(name = "类别名称")
    private String cname;

    /** 类别图片 */
    @Excel(name = "类别图片")
    private String cimg;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;
    private List<Goods> goodsList;

    public List<Goods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<Goods> goodsList) {
        this.goodsList = goodsList;
    }

    public void setCid(Long cid)
    {
        this.cid = cid;
    }

    public Long getCid()
    {
        return cid;
    }
    public void setSid(Long sid)
    {
        this.sid = sid;
    }

    public Long getSid()
    {
        return sid;
    }
    public void setCname(String cname)
    {
        this.cname = cname;
    }

    public String getCname()
    {
        return cname;
    }
    public void setCimg(String cimg)
    {
        this.cimg = cimg;
    }

    public String getCimg()
    {
        return cimg;
    }
    public void setState(Long state)
    {
        this.state = state;
    }

    public Long getState()
    {
        return state;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cid", getCid())
            .append("sid", getSid())
            .append("cname", getCname())
            .append("cimg", getCimg())
            .append("state", getState())
            .toString();
    }
}
